package com.jl.smartcard.ui.views.project;

import java.io.File;

import org.eclipse.core.runtime.IAdaptable;


public class TreeFile implements IAdaptable {
	private File file;
	private String name;
	private TreeFolder parent;

	public TreeFile(File file) {
		this.file = file;
		this.name = file.getName();
	}

	public String getName() {
		return name;
	}

	public void setParent(TreeFolder parent) {
		this.parent = parent;
	}

	public TreeFolder getParent() {
		return parent;
	}

	public File getFile() {
		return file;
	}

	@Override
	public String toString() {
		return getName();
	}

	@Override
	public Object getAdapter(Class key) {
		return null;
	}
}
